package com.wzw.basics.sort;

import java.util.Arrays;

/**
 * @author Wangzhiwen
 */
public class SortClient {

    public static void main(String[] args) {
        int[] arrays = new int[]{10, 3, 123, 43, 56, 12, 9};

        System.out.println("arrays raw " + Arrays.toString(arrays));

        BubbleSort.execute(new int[]{10, 3, 123, 43, 56, 12, 9});

        SelectionSort.execute(new int[]{10, 3, 123, 43, 56, 12, 9});

        System.out.println();

        InsertionSort.execute(new int[]{10, 3, 123, 43, 56, 12, 9});

        System.out.println();

        ShellSort.execute(new int[]{10, 3, 123, 43, 56, 12, 9});

        System.out.println();

        QuickSort.execute(new int[]{10, 3, 123, 43, 56, 12, 9});

        System.out.println();

        Arrays.sort(arrays);
        System.out.println(Arrays.toString(arrays));
    }

}
